﻿using Wicresoft.SMS.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for IHistoryWebDataAccessTest and is intended
    ///to contain all IHistoryWebDataAccessTest Unit Tests
    ///</summary>
    [TestClass()]
    public class IHistoryWebDataAccessTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        internal virtual IHistoryWebDataAccess CreateIHistoryWebDataAccess()
        {
            // TODO: Instantiate an appropriate concrete class.
            IHistoryWebDataAccess target = null;
            return target;
        }

        /// <summary>
        ///A test for DeleteMessageById
        ///</summary>
        [TestMethod()]
        public void DeleteMessageByIdTest()
        {
            IHistoryWebDataAccess target = CreateIHistoryWebDataAccess(); // TODO: Initialize to an appropriate value
            int Id = 0; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.DeleteMessageById(Id);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetHistoryByAll
        ///</summary>
        [TestMethod()]
        public void GetHistoryByAllTest()
        {
            IHistoryWebDataAccess target = CreateIHistoryWebDataAccess(); // TODO: Initialize to an appropriate value
            int PageIndex = 0; // TODO: Initialize to an appropriate value
            int MaxShow = 0; // TODO: Initialize to an appropriate value
            ViewHistoryType Type = new ViewHistoryType(); // TODO: Initialize to an appropriate value
            string Search = string.Empty; // TODO: Initialize to an appropriate value
            int BatchId = 0; // TODO: Initialize to an appropriate value
            List<HistoryInfoModel> expected = null; // TODO: Initialize to an appropriate value
            List<HistoryInfoModel> actual;
            actual = target.GetHistoryByAll(PageIndex, MaxShow, Type, Search, BatchId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetHistoryByGroup
        ///</summary>
        [TestMethod()]
        public void GetHistoryByGroupTest()
        {
            IHistoryWebDataAccess target = CreateIHistoryWebDataAccess(); // TODO: Initialize to an appropriate value
            int PageIndex = 0; // TODO: Initialize to an appropriate value
            int MaxShow = 0; // TODO: Initialize to an appropriate value
            int GroupId = 0; // TODO: Initialize to an appropriate value
            ViewHistoryType Type = new ViewHistoryType(); // TODO: Initialize to an appropriate value
            string Search = string.Empty; // TODO: Initialize to an appropriate value
            List<HistoryInfoModel> expected = null; // TODO: Initialize to an appropriate value
            List<HistoryInfoModel> actual;
            actual = target.GetHistoryByGroup(PageIndex, MaxShow, GroupId, Type, Search);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetHistoryByUser
        ///</summary>
        [TestMethod()]
        public void GetHistoryByUserTest()
        {
            IHistoryWebDataAccess target = CreateIHistoryWebDataAccess(); // TODO: Initialize to an appropriate value
            int PageIndex = 0; // TODO: Initialize to an appropriate value
            int MaxShow = 0; // TODO: Initialize to an appropriate value
            int UserId = 0; // TODO: Initialize to an appropriate value
            ViewHistoryType Type = new ViewHistoryType(); // TODO: Initialize to an appropriate value
            string Search = string.Empty; // TODO: Initialize to an appropriate value
            List<HistoryInfoModel> expected = null; // TODO: Initialize to an appropriate value
            List<HistoryInfoModel> actual;
            actual = target.GetHistoryByUser(PageIndex, MaxShow, UserId, Type, Search);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetPageCount
        ///</summary>
        [TestMethod()]
        public void GetPageCountTest()
        {
            IHistoryWebDataAccess target = CreateIHistoryWebDataAccess(); // TODO: Initialize to an appropriate value
            ViewHistoryType Type = new ViewHistoryType(); // TODO: Initialize to an appropriate value
            ViewHistoryRole Role = new ViewHistoryRole(); // TODO: Initialize to an appropriate value
            int Id = 0; // TODO: Initialize to an appropriate value
            int MaxShow = 0; // TODO: Initialize to an appropriate value
            string Search = string.Empty; // TODO: Initialize to an appropriate value
            int BatchId = 0; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetPageCount(Type, Role, Id, MaxShow, Search, BatchId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ResentMessage
        ///</summary>
        [TestMethod()]
        public void ResentMessageTest()
        {
            IHistoryWebDataAccess target = CreateIHistoryWebDataAccess(); // TODO: Initialize to an appropriate value
            int BatchId = 0; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.ResentMessage(BatchId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ResentMessageById
        ///</summary>
        [TestMethod()]
        public void ResentMessageByIdTest()
        {
            IHistoryWebDataAccess target = CreateIHistoryWebDataAccess(); // TODO: Initialize to an appropriate value
            int Id = 0; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.ResentMessageById(Id);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
